package erreAga.ws;

import javax.xml.ws.Endpoint;

import erreAga.ws.service.impl.ErreAgaWebServiceImpl;


public class App {

  protected App() throws Exception {
    System.out.println("Servidor pronto...");
    ErreAgaWebServiceImpl implementor = new ErreAgaWebServiceImpl();
    String address = "http://localhost:9000/erreAga";
    Endpoint.publish(address, implementor);
  }

  public static void main(String args[]) throws Exception {
    new App();
    System.out.println("Servidor pronto...");

    Thread.sleep(5 * 60 * 1000);
    System.out.println("Servidor fora...");
    System.exit(0);
}

}
